#usr/bin/python

from PyQt4 import QtCore
from controller import BaseController as base_control
from core import pySpec as obj


class Mdi_Control(base_control):
	"""
	Handles mdi area control
	"""
	
	def __init__(self, lspl = win):
		"""
		constructor
		"""
		base_control.__init__(self)
		#self.lspl= lsp
		
		#connection et context policy
		self.dialog.mdiArea.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
		QtCore.QObject.connect(self.main_window.mdiArea, QtCore.SIGNAL("customContextMenuRequested(const QPoint &)"), self.main_window.MakingMenu)
